package com.jiangdong.craft.mapper;

import com.jiangdong.craft.entity.Craft;
import com.jiangdong.craft.example.CraftExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface CraftMapper {

    long countByExample(CraftExample example);

    int deleteByExample(CraftExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Craft record);

    int insertSelective(Craft record);

    List<Craft> selectByExample(CraftExample example);

    Craft selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Craft record, @Param("example") CraftExample example);

    int updateByExample(@Param("record") Craft record, @Param("example") CraftExample example);

    int updateByPrimaryKeySelective(Craft record);

    int updateByPrimaryKey(Craft record);

    List<Craft> screeningQuery(@Param("keyWord") String keyWord,@Param("createTime") String createTime);
}